//
//  Sprite.h
//  phantom2d
//
//  Created by Jorge Lorenzon on 4/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <OpenGLES/ES1/gl.h>
#import "F2DAtlas.h"
#import "F2DTransform.h"


typedef struct {
    GLfloat Position[2];
    GLfloat UV[2];
    GLfloat Color[4];
} Vertex;


@interface F2DSprite : NSObject
{
    NSString* _spriteName;
    F2DAtlas* _atlas;
    Vertex _vertices[4];
    
    
    
    bool enabled;//falta------
    bool visible;//falta------
    int layer;//falta------
    
}

- (void) draw;
- (void) update;  //falta------

@property(nonatomic, strong) NSString* spriteName;
@property(nonatomic, strong) F2DAtlas* atlas;

@end
